package alt.djudge.frontend.server.servlets.gwt;

import javax.servlet.http.HttpServletRequest;

import alt.djudge.frontend.server.datatypes.UserEntry;
import alt.djudge.frontend.server.models.UsersModel;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;


public class DJudgeGwtRpcServlet extends RemoteServiceServlet
{
	private static final long serialVersionUID = 1L;
	
	protected UserEntry getCurrentUser()
	{
		HttpServletRequest request = getThreadLocalRequest();
		return UsersModel.getCurrentUser(request);
	}
}
